package com.easylinkin.sm.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.easylinkin.sm.entity.DictItem;

import java.util.List;
import site.morn.boot.data.CrudService;
import site.morn.boot.rest.RestPage;

/**
 * 数据字典服务
 *
 * @author wujie
 * @since 0.1.1,  2019/08/19
 */
public interface DictItemService extends CrudService<DictItem, Long> {

  List<DictItem> findParentDicItemList(Long id);

  List<DictItem> findDicItemList(String dictCode);

  List<Long> batchDelete(List<Long> ids);

  Page<DictItem> getDictItemPage(RestPage<DictItem> restPage);
}
